home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000003_icon-group-sender _Thu Jan 4 19:01:56 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  18KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 5 Jan 1996 08:34:02 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 4 Jan 1996 19:01:56 -0700
  4. From: icon-project@cs.arizona.edu
  5. Message-Id: <4ci0qk$i3h@cheltenham.cs.arizona.edu>
  6. Organization: University of Arizona CS Department, Tucson AZ
  7. Sender: icon-group-request@cs.arizona.edu
  8. Reply-To: icon-project@cs.arizona.edu
  9. Subject: Icon Programming Language FAQ
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11. Status: O
  12.  
  13. Archive-name: comp-lang-icon-faq
  14. Posting-Frequency: monthly
  15.  
  16. Frequently Asked Questions About The Icon Programming Language
  17. Last updated: December 4, 1995
  18.  
  19. This FAQ answers various questions about the Icon programming language,
  20. ranging from what it is to how you can get it. The master copy of this FAQ
  21. is the Web page http://www.cs.arizona.edu/icon/www/faq.html. Other on-line
  22. documentation is available via the main Icon page at
  23. http://www.cs.arizona.edu/icon/www/.
  24.  
  25. This FAQ is written by Ralph Griswold and Gregg Townsend, with help from
  26. Cliff Hathaway, Clint Jeffery, and Bob Alexander.
  27.  
  28.    * 1. What is Icon?
  29.    * 2. What is Icon good for?
  30.    * 3. Where did Icon come from?
  31.    * 4. What does "Icon" stand for?
  32.    * 5. On what computers does Icon run?
  33.    * 6. Who did all these implementations?
  34.    * 7. Are there other implementations in the works?
  35.    * 8. What about different versions of Icon?
  36.    * 9. Which implementations of Icon have graphics/window capabilities?
  37.    * 10. Where can I get Icon?
  38.    * 11. Where can I get documentation about Icon?
  39.    * 12. How do I get started with Icon?
  40.    * 13. What is the Icon Project?
  41.    * 14. Where can I find examples of Icon programs?
  42.    * 15. What is Idol?
  43.    * 16. How often is material in Icon's FTP area updated?
  44.    * 17. How do I stay up to date with what's going on with Icon?
  45.    * 18. Is there a users' group for Icon?
  46.    * 19. How do I get technical support?
  47.    * 20. Should I use the Icon interpreter or compiler?
  48.    * 21. What do I need to run the interpreter?
  49.    * 22. What do I need to run the compiler?
  50.    * 23. Can I build my own implementation of Icon for a new platform?
  51.  
  52. ----------------------------------------------------------------------------
  53.  
  54. 1. What is Icon?
  55.  
  56. Icon is a very high level general-purpose programming language with
  57. extensive features for processing strings (text) and data structures. Icon
  58. is an imperative, procedural language with a syntax that is reminiscent of C
  59. and Pascal, but its semantics are at a much higher level than those
  60. languages.
  61.  
  62. Icon has a novel expression-evaluation mechanism that integrates
  63. goal-directed evaluation and backtracking with conventional control
  64. structures. It has a string scanning facility for pattern matching that
  65. avoids the tedious details usually associated with analyzing strings. Icon's
  66. built-in data structures include sets and tables with associative lookup,
  67. lists that can be used as vectors or stacks and queues, and records.
  68.  
  69. Icon is a strongly, though not statically, typed language. It provides
  70. transparent automatic type conversion. For example, if an integer is used in
  71. an operation that requires a string, the integer is automatically converted
  72. to a string.
  73.  
  74. Several implementations of Icon have high-level graphics facilities with an
  75. easily programmed window interface.
  76.  
  77. Icon manages storage automatically. Objects are created as needed during
  78. program execution and space is reclaimed by garbage collection as needed.
  79. The sizes of strings and data structures are limited only by the amount of
  80. available memory.
  81.  
  82.  
  83. 2. What is Icon good for?
  84.  
  85. As a general-purpose programming language with a large computational
  86. repertoire, Icon can be used for most programming tasks. It's at its best
  87. when used as a prototyping tool, for processing text, and when ease of
  88. programming is needed for experimental and research applications.
  89.  
  90. Paradoxically, Icon is used most often for short, one-shot tasks and for
  91. very complex applications.
  92.  
  93. Icon is designed to make programming easy; it emphasizes the value of
  94. programmer's time and the importance of getting programs to work quickly.
  95. This explains its usefulness for prototyping as well as the apparent paradox
  96. of applicability to simple and complex applications.
  97.  
  98.  
  99. 3. Where did Icon come from?
  100.  
  101. Icon is the latest in a series of high-level programming languages designed
  102. to facilitate programming tasks involving strings and structures. The
  103. original language, SNOBOL, was developed at Bell Telephone Laboratories in
  104. the early 60s. SNOBOL evolved into SNOBOL4, which is still in use.
  105. Subsequent languages were developed at The University of Arizona with
  106. support from the National Science Foundation.
  107.  
  108. Incidentally, Icon bears little physical resemblance to SNOBOL4, although it
  109. has similar objectives and many similar capabilities.
  110.  
  111.  
  112. 4. What does "Icon" stand for?
  113.  
  114. The name Icon (which is not spelled ICON) is not an acronym nor does it
  115. stand for anything in particular, although the word "iconoclastic" was
  116. mentioned at the time the name was chosen. The name predates the now common
  117. use of "icon" to refer to small images used in graphical user interfaces.
  118. This latter usage sometimes causes persons to think mistakenly that Icon is
  119. designed to create or manipulate icons. There's not much that can be done
  120. about this.
  121.  
  122.  
  123. 5. On what computers does Icon run?
  124.  
  125. The implementation of Icon is highly portable. Version 9 runs on
  126. Macintosh/MPW, MS-DOS, UNIX, and VAX/VMS. There are older versions for the
  127. Acorn Archimedes, the Amiga, the Atari ST, IBM CMS and MVS, and OS/2.
  128.  
  129. Icon programs also are highly portable. Most Icon programs can run on any
  130. platform that supports Icon.
  131.  
  132.  
  133. 6. Who did all these implementations?
  134.  
  135. The original implementation of Icon for UNIX was done at The University of
  136. Arizona. Most of the other implementations originally were done by
  137. volunteers scattered around the world.
  138.  
  139. It's worth noting that all implementations of Icon are based on the same
  140. source code, which is written in C. This contributes to the portability of
  141. Icon itself, as well as to the portability of programs written in Icon.
  142.  
  143.  
  144. 7. Are there other implementations in the works?
  145.  
  146. Yes, work is constantly underway on implementations of Icon for new
  147. platforms. Present projects include Microsoft Windows, Windows NT, and a new
  148. Macintosh implementation.
  149.  
  150.  
  151. 8. What about different versions of Icon?
  152.  
  153. Icon has evolved through a series of versions with improved and extended
  154. capabilities. The latest major version number is 9. This version includes
  155. recent changes and additions, notably in the graphics area. As of this
  156. writing, Macintosh/MPW, MS-DOS, UNIX, and VAX/VMS implementations are up to
  157. 9. There are other implementations that presently are at Version 8. Almost
  158. all programs that run under 8 and that do not use graphics will run under 9.
  159.  
  160.  
  161. 9. Which implementations of Icon have graphics/window capabilities?
  162.  
  163. Icon's graphics facilities presently are supported on UNIX and VAX/VMS. The
  164. Windows NT and Microsoft Windows implementations that are in progress will
  165. support Icon's graphics facilities. A Macintosh implementation to support
  166. graphics also is in the works.
  167.  
  168.  
  169. 10. Where can I get Icon?
  170.  
  171. Icon is available via anonymous FTP and on the Web. For FTP, use
  172.  
  173.      ftp.cs.arizona.edu
  174.  
  175. and cd /icon.
  176.  
  177. For the Web, use
  178.  
  179.      http://www.cs.arizona.edu/icon/www/
  180.  
  181. and check out the links there.
  182.  
  183. For FTP, the directory /icon/binaries contains executable versions of Icon
  184. for several systems, including several popular UNIX platforms. The directory
  185. /icon/packages contains source code, test programs, related material, and,
  186. most cases, executable binaries as well. All directories have README files
  187. with additional information.
  188.  
  189. Icon also is available on diskettes for prices ranging from $15 to $25.
  190. Contact:
  191.  
  192.      Icon Project
  193.      Department of Computer Science
  194.      The University of Arizona
  195.      P.O. Box 210077
  196.      Tucson, AZ 85721-0077
  197.  
  198.      520-621-6613 (voice)
  199.      520-621-4246 (fax)
  200.  
  201.      icon-orders@cs.arizona.edu
  202.  
  203. Purchases can be made by credit card (MasterCard or Visa) or by check drawn
  204. on a bank with a branch in the United States and made payable to The
  205. University of Arizona.
  206.  
  207. Icon is available on CD-ROM from Prime Time Freeware (http://www.ptf.com/,
  208. 408-433-9662). Contact them for details.
  209.  
  210.  
  211. 11. Where can I get documentation about Icon?
  212.  
  213. The definitive work on Icon is the book
  214.  
  215.      The Icon Programming Language, Griswold and Griswold,
  216.      Prentice-Hall, 1990, 368 pages, ISBN 0-13-447889-4.
  217.  
  218. This book is a complete description and reference manual for Version 8 of
  219. Icon. A technical report describes changes since that version.
  220.  
  221. There also is a book on the implementation of Icon:
  222.  
  223.      The Implementation of the Icon Programming Language, Griswold and
  224.      Griswold, Princeton University Press, 1986, 336 pages, ISBN
  225.      0-691-08431-9.
  226.  
  227. This book describes the implementation as of Version 6 of Icon. Although the
  228. implementation has changed considerably since then, the basic structure is
  229. the same. Technical reports describing recent implementation changes are
  230. included with copies of the book purchased from the Icon Project.
  231.  
  232. These books are available from the Icon Project or from book stores that
  233. handle special orders.
  234.  
  235. Additional documentation is available via FTP in /icon/doc. Notable
  236. documents are:
  237.  
  238.    * IPD266: An Overview of Icon (text, PostScript, PDF)
  239.    * IPD268: Graphics/window facilities (PostScript, PDF)
  240.    * IPD267: Version 9.1 of Icon (text, PostScript, PDF)
  241.  
  242. There are manual pages for UNIX systems, and more documentation under the
  243. Icon web page, but there is no complete on-line documentation.
  244.  
  245. The Icon Newsletter, which includes topical material about Icon and a list
  246. of material available from the Icon Project, is published three times a year
  247. and is available on the Web. There is a $20 one-time fee for an on-going
  248. subscription by postal mail. The Icon Analyst, a technically-oriented
  249. newsletter that features articles about programming, is published six times
  250. a year. There is a subscription fee for the Analyst. A sample copy is
  251. available on the Web.
  252.  
  253. All back issues of both newsletters are available for purchase.
  254.  
  255.  
  256. 12. How do I get started with Icon?
  257.  
  258. If you're running under Unix, check first in the /icon/binaries/unix FTP
  259. directory to see if there is a "starter kit" for your platform. Starter kits
  260. include executables, documentation, and other material.
  261.  
  262. Otherwise, go to the /icon/packages directory and get the appropriate
  263. package. Packages include documentation and other material; see the README
  264. file in that directory for more details. There is a Unix package for
  265. platforms that lack starter kits.
  266.  
  267. If the non-Unix package you pick up does not contain executable files, check
  268. /icon/binaries. You also may want to get the overview of Icon:
  269. /icon/doc/ipd266.doc or ipd266.ps.Z. You'll find pointers to other documents
  270. of interest in the package you pick up.
  271.  
  272.  
  273. 13. What is the Icon Project?
  274.  
  275. The Icon Project is a name used by the group that develops, implements,
  276. distributes, and supports the Icon programming language.
  277.  
  278. The Icon Project is not commercial organization. It derives support from The
  279. University of Arizona and (primarily) revenue from the sale of program
  280. material and documentation.
  281.  
  282.  
  283. 14. Where can I find examples of Icon programs?
  284.  
  285. There is a large program library for Icon. It is an excellent resource for
  286. both new and experienced programmers. The library contains numerous examples
  287. of how to do things with Icon. The library also provides many useful
  288. applications, as well as hundreds of procedures that supplement Icon's
  289. built-in repertoire.
  290.  
  291. The library, like other Icon material, is available via FTP in /icon/library
  292. and on diskettes from the Icon Project.
  293.  
  294.  
  295. 15. What is Idol?
  296.  
  297. Idol is an object-oriented extension to Icon that provides concepts such as
  298. classes and multiple inheritance. Idol is written in Idol and is distributed
  299. as part of the Icon program library. Idol runs on almost all of the
  300. platforms that support Icon.
  301.  
  302. Additional Idol information is available from Clint Jeffery,
  303.  
  304.      jeffery@ringer.cs.utsa.edu.
  305.  
  306.  
  307. 16. How often is material in Icon's FTP area updated?
  308.  
  309. New material is added when it's available. Established implementations
  310. usually are only updated when there's a major new release. This typically is
  311. every year or two. The Icon program library is updated on a similar
  312. schedule.
  313.  
  314.  
  315. 17. How do I stay up to date with what's going on with Icon?
  316.  
  317. The best way to find out about developments related to Icon is to read the
  318. Icon Newsletter.
  319.  
  320. You can stay up to date on the source code, which is changed much more
  321. frequently than the version on FTP is updated, by subscribing to the source
  322. update service, which provides a new version about three times a year.
  323.  
  324. There also is a subscription service for updates to the Icon program
  325. library, which provides new material about three times a year.
  326.  
  327. There is on-line information about subscribing to these services.
  328.  
  329.  
  330. 18. Is there a users' group for Icon?
  331.  
  332. There is no official Icon users' group. The Icon Project maintains an
  333. electronic mailing list,
  334.  
  335.      icon-group@cs.arizona.edu.
  336.  
  337. Mail sent to this address is forwarded to subscribers. To subscribe (or
  338. unsubscribe), send a message to
  339.  
  340.      icon-group-request@cs.arizona.edu.
  341.  
  342. There is a gateway between icon-group and comp.lang.icon, an unmoderated
  343. newsgroup for discussing issues related to Icon. The gateway, which
  344. exchanges messages between the two systems, is imperfect and not under the
  345. control of the Icon Project.
  346.  
  347. The newsgroup generally provides faster response than the mailing list, is
  348. less intrusive, but sometimes suffers from inappropriate postings. The Icon
  349. Project usually sends messages of interest to the Icon community to
  350. icon-group.
  351.  
  352.  
  353. 19. How do I get technical support?
  354.  
  355. Since the Icon Project is not a commercial organization, its capacity for
  356. providing technical support is limited. It will help if you use the
  357. appropriate resource when you need assistance:
  358.  
  359. Ordering Icon Material
  360.  
  361. mail:   Icon Project
  362.         Department of Computer Science
  363.         The University of Arizona
  364.         P.O. Box 210077
  365.         Tucson, Arizona 85721-0077
  366.         U.S.A.
  367.  
  368. fax:    (520) 621-4246
  369. voice:  (520) 621-6613
  370. e-mail: icon-orders@cs.arizona.edu
  371.  
  372. Getting On-Line Information and Material
  373.  
  374. web:    http://www.cs.arizona.edu/icon/www/
  375. ftp:    ftp.cs.arizona.edu (cd /icon)
  376. e-mail: ftpmail@cs.arizona.edu
  377.         Send a message consisting of the word help.
  378.  
  379. Assistance with Installing Icon
  380.  
  381. e-mail: icon-project@cs.arizona.edu
  382.  
  383. Bug Reports
  384.  
  385. e-mail: icon-project@cs.arizona.edu
  386. fax:    (520) 621-4246
  387.  
  388. Assistance with Programming Problems
  389.  
  390. e-mail: icon-group@cs.arizona.edu
  391. news:   comp.lang.icon
  392.  
  393. Uploading Files
  394.  
  395. ftp:    ftp.cs.arizona.edu (cd /incoming)
  396.         After uploading, send e-mail to icon-project@cs.arizona.edu.
  397.  
  398.  
  399. 20. Should I use the Icon interpreter or compiler?
  400.  
  401. As the question indicates, there are two forms of the implementation of
  402. Icon, an interpreter and a compiler. The interpreter gets a program into
  403. execution quickly and is recommended for program development, debugging, and
  404. most production situations. The compiler produces code that executes
  405. somewhat faster than interpreted code (a factor of 2 or 3 is typical), but
  406. the compiler requires a large amount of resources and is very slow in
  407. producing executable code. It also requires additional time and effort at
  408. installation time.
  409.  
  410. The compiler is recommended only for small programs where execution speed is
  411. the paramount concern.
  412.  
  413.  
  414. 21. What do I need to run the interpreter?
  415.  
  416. The Icon interpreter will run on most computers. It requires a reasonable
  417. amount of memory, however. Under MS-DOS, the Icon interpreter needs 500 KB
  418. of application RAM to work well.
  419.  
  420.  
  421. 22. What do I need to run the compiler?
  422.  
  423. The Icon compiler is another matter. It requires a C compiler, a fast CPU
  424. for tolerable compilation times, a considerable amount of disk space, and a
  425. lot of memory -- at least several megabytes.
  426.  
  427. The Icon compiler generates C code, which must then be compiled to produce
  428. an executable program. The flexibility that Icon provides to programmers
  429. makes compilation technically difficult and the process requires a large
  430. amount of memory. The C code it produces is voluminous and stresses the most
  431. robust C compilers.
  432.  
  433. Generally speaking, the Icon compiler is practical for platforms in the
  434. workstation class but not for personal computers.
  435.  
  436.  
  437. 23. Can I build my own implementation of Icon for a new platform?
  438.  
  439. As mentioned above, Icon is written in C and the source code is available.
  440. The existing implementations are testament to its portability. (A small
  441. amount of assembly-language code is required for a context switch, but this
  442. is only needed for an optional feature -- co-expressions -- that can be
  443. disabled without affecting most of Icon.)
  444.  
  445. New ports involve platform-specific configuration parameters and, in some
  446. cases, platform-specific code. The feasibility of a new port and the amount
  447. of work it may take depends on the platform -- its architecture, its C
  448. compiler, and its environment.
  449.  
  450. Ports to new UNIX platforms generally are easy, although novel architectures
  451. may present problems. Ports to new operating systems generally are more
  452. difficult, especially if Icon's graphics facilities are implemented.
  453.  
  454. The Icon Project provides what help it can with new ports. In return, it
  455. asks that code related to the port to be returned to the Icon Project for
  456. inclusion in future versions of the source code for Icon. This makes the new
  457. port available to others as well as to the porter when Icon is updated.
  458.